/* 
 * File:   F02.h
 * Author: jcrada
 *
 * Created on 23 July 2011, 12:58 PM
 */

#ifndef JRV_F02_H
#define	JRV_F02_H

#include "ecb/base/Problem.h"

#include "ecb/function/Quartic.h"

namespace ecb {
    namespace jrv11 {

        class F02 : public Problem {
        private:
            Problem* quartic;
        public:

            F02(int dimensions)
            : Problem("F02", "Quartic", dimensions,
            -1.28, 1.28, true) {
                quartic = new Quartic;
            }

            ~F02() {
                delete quartic;
            }

            scalar f(const std::vector<scalar>& x) {
                return quartic->f(x);
            }
        };
    }
}

#endif	/* JRV_F02_H */

